package cn.edu.sgu.www.mhxysy.service.potency;

import cn.edu.sgu.www.mhxysy.dto.potency.PotencyFruitPatternCategoryDTO;
import cn.edu.sgu.www.mhxysy.entity.potency.PotencyFruitPatternCategory;
import cn.edu.sgu.www.mhxysy.pager.potency.PotencyPatternPager;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface PotencyFruitPatternCategoryService {

    void insert(PotencyFruitPatternCategoryDTO potencyFruitPatternCategoryDTO);

    void deleteById(Integer id);

    void updateById(PotencyFruitPatternCategoryDTO potencyFruitPatternCategoryDTO);

    List<PotencyFruitPatternCategory> selectAll();

    PotencyFruitPatternCategory selectById(Integer id);

    /**
     * 通过潜能果图案类型查询潜能果图案列表
     * @param type 潜能果图案类型
     * @return List<PotencyFruitPatternCategory>
     */
    List<PotencyFruitPatternCategory> selectByType(Integer type);

    Page<PotencyFruitPatternCategory> selectByPage(PotencyPatternPager pager);
}